{% if results %}
<h2>Results for {{q}}:</h2>
  <table>
    <tr><th>File</th><th>Link</th><th>Size</th><th>Seeders</th>
        <th>Leechers</th><th>Full-text rank</th><th>My rank (seeders
        + leechers)</th></tr>
    {% for name, link, size, seeders, leechers, rank, myrank in results %}
      <tr> <td>{{name}}</td> 
           <td><a href="{{link}}">Magnet download</a></td><td>{{size}}</td>
           <td>{{seeders}}</td><td>{{leechers}}</td><td>{{rank}}</td>
           <td>{{myrank}}</td></tr>
    {% endfor %}
  </table>
{% else %}
  <p>No results.</p>
{% endif %}
